$(function(){
	$("#gengzi").click(function(){
		gengzi();
	});
	$("#xinchou").click(function(){
		xinchou();
	});
	$("#renyin").click(function(){
		renyin();
	});
	$("#guimao").click(function(){
		guimao();
	});
	$("#jiachen").click(function(){
		jiachen();
	});
	$("#yisi").click(function(){
		yisi();
	});
});

function gengzi(){
	$("#content:nth-of-type(2) #gua #guaname").html(data.gua[i]);
	
}
function yisi(){
	$("#liunian .layui-row:nth-of-type(1) div:nth-of-type(1)").html("");
	$("#liunian .layui-row:nth-of-type(1) div:nth-of-type(2)").html("");
	$("#liunian .layui-row:nth-of-type(1) div:nth-of-type(3)").html("");
	$("#liunian .layui-row:nth-of-type(1) div:nth-of-type(4)").html("");
	$("#liunian .layui-row:nth-of-type(1) div:nth-of-type(5)").html("");
	$("#liunian .layui-row:nth-of-type(1) div:nth-of-type(6)").html("");
	$("#liunian .layui-row:nth-of-type(1) div:nth-of-type(7)").html("");
	$("#liunian .layui-row:nth-of-type(1) div:nth-of-type(8)").html("");
	$("#liunian .layui-row:nth-of-type(1) div:nth-of-type(9)").html("");
	$("#liunian .layui-row:nth-of-type(1) div:nth-of-type(10)").html("");
	
	$("#liunian .layui-row:nth-of-type(2) div:nth-of-type(1)").html("");
	$("#liunian .layui-row:nth-of-type(2) div:nth-of-type(2)").html("");
	$("#liunian .layui-row:nth-of-type(2) div:nth-of-type(3)").html("");
	$("#liunian .layui-row:nth-of-type(2) div:nth-of-type(4)").html("");
	$("#liunian .layui-row:nth-of-type(2) div:nth-of-type(5)").html("");
	$("#liunian .layui-row:nth-of-type(2) div:nth-of-type(6)").html("");
	$("#liunian .layui-row:nth-of-type(2) div:nth-of-type(7)").html("");
	$("#liunian .layui-row:nth-of-type(2) div:nth-of-type(8)").html("");
	$("#liunian .layui-row:nth-of-type(2) div:nth-of-type(9)").html("");
	$("#liunian .layui-row:nth-of-type(2) div:nth-of-type(10)").html("");
	
	$("#liunian .layui-row:nth-of-type(3) div:nth-of-type(1)").html("");
	$("#liunian .layui-row:nth-of-type(3) div:nth-of-type(2)").html("");
	$("#liunian .layui-row:nth-of-type(3) div:nth-of-type(3)").html("");
	$("#liunian .layui-row:nth-of-type(3) div:nth-of-type(4)").html("");
	$("#liunian .layui-row:nth-of-type(3) div:nth-of-type(5)").html("");
	$("#liunian .layui-row:nth-of-type(3) div:nth-of-type(6)").html("");
	$("#liunian .layui-row:nth-of-type(3) div:nth-of-type(7)").html("");
	$("#liunian .layui-row:nth-of-type(3) div:nth-of-type(8)").html("");
	$("#liunian .layui-row:nth-of-type(3) div:nth-of-type(9)").html("");
	$("#liunian .layui-row:nth-of-type(3) div:nth-of-type(10)").html("");
}